package common.messages;

/**
 * 
 * @author zhou,shi,huang
 * 
 */

public class MetaData {

	// IP 			Port  Start-index   End-index
	// 127.0.0.1 , 50000, 000 ... 000 , 1FF ...FFF
	// 127.0.0.1 , 50001, 200 ... 000 , 3FF ... FFF
	// 127.0.0.1 , 50002, 400 ... 000 , 5FF ... FFF
	
	public String head = "00000000000000000000000000000000";
	public String tail = "ffffffffffffffffffffffffffffffff";
	public String ip = "";
	public String port = "";

	public MetaData() {
		super();
	}

	/**
	 * @param head
	 *            start_index
	 * @param tail
	 *            end_index
	 * @param ip
	 *            ip
	 * @param port
	 *            port
	 */
	public MetaData(String head, String tail, String ip, String port) {
		super();
		this.head = head;
		this.tail = tail;
		this.ip = ip;
		this.port = port;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public String getTail() {
		return tail;
	}

	public void setTail(String tail) {
		this.tail = tail;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

}
